package com.cake.dao;

import java.util.List;
import java.util.Map;

import com.cake.dao.base.IBaseDao;
import com.cake.entity.XxArea;
import com.cake.entity.XxOrder;

public interface XxAreaMapper extends IBaseDao<XxArea>{
	
	/**
	 * 根据城市码查区县
	 * @param cityCode
	 * @return
	 */
	List<XxArea> selectDistrictByCityCode(Integer cityCode);
	
	/**
	 * 根据省份码查城市
	 * @param provinceCode
	 * @return
	 */
	List<XxArea> selectCityByProvinceCode(Integer provinceCode);
	
	/**
	 * 查询所有的省份
	 * @return
	 */
	List<XxArea> selectProvince();
	
	/**
	 * 查询收货人人数
	 * @param map
	 * @return
	 */
	Integer selectReceiverTotalByDistrictOrCityOrProvince(Map<String, Object> map);
	
	/**
	 * 查询订单数量
	 * @return
	 */
	Integer selectOrderTotalByDistrictOrCityOrProvince(Map<String, Object> map);
	
	/**
	 * 查询商品详情
	 * @param map
	 * @return
	 */
	List<XxOrder> selectOrderItemsByDistrictOrCityOrProvince(Map<String, Object> map);
}